public abstract class Resource {
	public boolean status;
	public int lastStatusChange;
	public int totalBusyTime;
	public int totalIdleTime;
	public int nextDecisionPoint;
	
	
	public Resource(boolean status, int lastStatusChange, int totalBusyTime, int totalIdleTime, int nextDecisionPoint) {
		this.status = false;
		this.lastStatusChange = 0;
		this.totalBusyTime =0;
		this.totalIdleTime = 0;
		this.nextDecisionPoint = 0;
	}
	
	
	public boolean getStatus() {return status;}
	
	public void setStatus(boolean statusChange) {this.status = statusChange;}
	
	public int getLastStatusChange() {return lastStatusChange;}
	
	public void setLastStatusChange(int now) {this.lastStatusChange = now;}
	
	public int gettotalBusyTime() {return totalBusyTime;}
	
	public void addBusyTime(int busyTime) {this.totalBusyTime += busyTime;}
	
	public int getTotalIdleTime() {return totalIdleTime;}
	
	public void addIdleTime(int idleTime) {this.totalIdleTime += idleTime;}
	
	public int getNextDecisionPoint() {return nextDecisionPoint;}
	
	public void setNextDecisionPoint(int nextDecisionPoint) {this.nextDecisionPoint = nextDecisionPoint;}
}
	

